package com.example.javaserve.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @projectName: my_project
 * @package: com.example.javaserve.dto
 * @className: EmailDto
 * @author: xxXPCSC
 * @description: TODO
 * @date: 2023/11/15 15:54
 * @version: 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmailDto {
    @NotEmpty
    private List<String> tos;

    /**
     * 主题
     */
    @NotBlank
    private String subject;

    /**
     * 内容
     */
    @NotBlank
    private String content;
}
